export const onChangeTab = (name: string) => {
    const tab = localStorage.getItem('tab') || 'home'
    console.log(tab + "==>" + name)
    localStorage.setItem('tab', name)
    if(name == 'home') {
        if(tab != 'home') {
            setTimeout(() => {
                location.reload()
            }, 90);
        }
    }
}
